package org.jeecg.modules.business.takestockplan.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 盘点计划
 * @Author: jeecg-boot
 * @Date:   2023-08-02
 * @Version: V1.0
 */
@Data
@TableName("wms_take_stock_plan")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="wms_take_stock_plan对象", description="盘点计划")
public class TakeStockPlan implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
	@Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    private String sysOrgCode;
	/**盘点任务名称*/
	@Excel(name = "盘点任务名称", width = 15)
	@ApiModelProperty(value = "盘点任务名称")
	private String name;
	/**编号*/
	@Excel(name = "编号", width = 15)
    @ApiModelProperty(value = "编号")
    private String code;
	/**单据状态*/
	@Excel(name = "单据状态", width = 15, dicCode = "take_stock_status")
	@Dict(dicCode = "take_stock_status")
    @ApiModelProperty(value = "单据状态")
    private String documentStatus;
	/**货主类型*/
	@Excel(name = "货主类型", width = 15, dicCode = "wms_owner_of_cargo")
	@Dict(dicCode = "wms_owner_of_cargo")
    @ApiModelProperty(value = "货主类型")
    private String ownerType;
	/**货主*/
	@Excel(name = "货主", width = 15)
    @ApiModelProperty(value = "货主")
    private String owner;
	/**仓库组id*/
	@Excel(name = "仓库组id", width = 15)
	@Dict(dictTable = "wms_basic_warehouse_group", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "仓库组id")
    private String wmsBasicWarehouseGroupId;
	/**仓库id*/
	@Excel(name = "仓库id", width = 15, dictTable = "wms_basic_warehouse", dicText = "code", dicCode = "id")
	@Dict(dictTable = "wms_basic_warehouse", dicText = "code", dicCode = "id")
    @ApiModelProperty(value = "仓库id")
    private String wmsBasicWarehouse;
	/**库区id*/
	@Excel(name = "库区id", width = 15, dictTable = "wms_basic_warehouse_area", dicText = "code", dicCode = "id")
	@Dict(dictTable = "wms_basic_warehouse_area", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "库区id")
    private String wmsBasicWarehouseArea;
	/**仓管员id*/
	@Excel(name = "仓管员id", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "仓管员id")
    private String userId;
	/**计划盘点日期*/
	@Excel(name = "计划盘点日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "计划盘点日期")
    private Date planTime;
	/**盘点物料分类*/
	@Excel(name = "盘点物料分类", width = 15, dictTable = "wms_basic_material_type", dicText = "name", dicCode = "id")
	@Dict(dictTable = "wms_basic_material_type", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "盘点物料分类")
    private String materialTypeId;
	/**盘点物料id*/
	@Excel(name = "盘点物料id", width = 15, dictTable = "wms_basic_material", dicText = "code", dicCode = "id")
	@Dict(dictTable = "wms_basic_material", dicText = "code", dicCode = "id")
    @ApiModelProperty(value = "盘点物料id")
    private String materialId;
	/**盘点方式*/
	@Excel(name = "盘点方式", width = 15, dicCode = "wms_take_stock_method")
	@Dict(dicCode = "wms_take_stock_method")
    @ApiModelProperty(value = "盘点方式")
    private String runType;
	/**盘点类型*/
	@Excel(name = "盘点类型", width = 15, dicCode = "take_stock_type")
	@Dict(dicCode = "take_stock_type")
	@ApiModelProperty(value = "盘点类型")
	private String type;
	/**盘点范围类型*/
	@Excel(name = "盘点范围类型", width = 15, dicCode = "take_stock_range")
	@Dict(dicCode = "take_stock_range")
	@ApiModelProperty(value = "盘点范围类型")
	private String rangeType;
	/**租户id*/
	@Excel(name = "租户id", width = 15)
    @ApiModelProperty(value = "租户id")
    private Integer tenantId;
	/**逻辑删除*/
	@Excel(name = "逻辑删除", width = 15)
    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer delFlag;
	/**单据类型*/
	@Excel(name = "单据类型", width = 15, dicCode = "take_task")
	@Dict(dicCode = "take_task")
	@ApiModelProperty(value = "单据类型")
	private String documentType;
	/**客户id*/
	@Excel(name = "客户", width = 15, dictTable = "wms_basic_customer", dicText = "code", dicCode = "id")
	@Dict(dictTable = "wms_basic_customer", dicText = "code", dicCode = "id")
	@ApiModelProperty(value = "客户id")
	private String customerId;
	/**生产订单号*/
	@ApiModelProperty(value = "生产订单号")
	private String productOrderCode;
	/**盘点任务是否执行*/
	@Dict(dicCode = "yn")
	@ApiModelProperty(value = "盘点任务是否执行")
	private String executeFlag;
	/**组织*/
	@ApiModelProperty(value = "组织")
	private String organization;
	/**供应商id*/
	@Dict(dictTable = "wms_basic_supplier", dicText = "code", dicCode = "id")
	@ApiModelProperty(value = "供应商id")
	private String supplierId;
	/**盘点任务是否生成盘点差异处理单, 0 否, 1 是*/
	@Dict(dicCode = "yn")
	@ApiModelProperty(value = "盘点任务是否生成盘点差异处理单, 0 否, 1 是")
	private String generateFlag;
}
